08. Case Study: Introduction
AI For Trading C6 L3 A05 Case Study- Introduction V2
Overview of AI Trading Model Setup
This section provides a practical framework for setting up an AI trading model using a momentum-based strategy enhanced with machine learning. Here's a step-by-step guide:
Define the Strategy:
- Use Moving Average (MA) Crossover for bullish and bearish signals.
- Enhance with a binary classification model to predict buy/sell opportunities.
Collect Raw Data:
- Historical data: open, low, high, close, volume.
- Include a volatility index like VIX.
Feature Engineering:
- Indicators: Lagged returns, short and long-term moving averages.
- Signals: Use crossover strategy as a ternary variable (1, -1, 0).
- Additional options: MACD, Bollinger Bands, RSI.
Feature Scaling:
- Methods: Standardization, normalization.
Define Prediction Target:
- Binary classification for profitable buys.
- Profitability threshold and time horizon as hyperparameters.
Data Splitting & Validation:
- Test/train ratio, cross-validation with time-based methods.
Model Selection:
- Choose model and identify related hyperparameters.
Next, focus on hyperparameter tuning.